<?php

use Whoops\Run;
use Whoops\Handler\PrettyPageHandler;

class base_handleExceptions
{
    public function bootstrap()
    {
        // error_reporting(E_ALL);
        // error_reporting(E_ALL ^ E_NOTICE);
        error_reporting(E_ERROR | E_USER_ERROR | E_PARSE | E_COMPILE_ERROR);

		// set_error_handler([$this, 'handleError']);

		// set_exception_handler([$this, 'handleException']);

        // register_shutdown_function([$this, 'handleShutdown']);

        $whoops = new Run;

        $whoops->pushHandler(new PrettyPageHandler);

        $whoops->register();

        /*
		if ( ! kernel::environment('testing'))
		{
			ini_set('display_errors', 'Off');
		}
        */
    }
}